import { Action } from 'redux'



// 单个聚合
// type ItemProps = {} | string | number | any[]

// 接口  多个聚合
// interface ActionItemProps {
//   type: string,
//   data: any //
// }
const defaultState = {
  opt: {}
}

export default (state = defaultState, action:any) => {

   switch(action.type) {
     case 'ININT_DATA':
       state.opt = action.data
       console.log('action....:', action)
       return {...state}

     default:
       return {...state}
   }
}
